<?php

use yii\helpers\Html;
use kartik\form\ActiveForm;
use fztadmin\modules\rbac\widgets\user_set_roles\UserSetRoles;

/* @var $this yii\web\View */
/* @var $model fztadmin\modules\rbac\models\forms\User */
/* @var $form \kartik\form\ActiveForm */

?>
<div class="user-test">
    <div class="row">
        <div class="col-sm-12">
            <?php $form = ActiveForm::begin(); ?>
            <?=$form->field($model, 'id')->hiddenInput()->label(false) ?>
            <?php foreach($model->getHasIsCheckedRoles() as $k => $v): ?>
                <div class="checkbox-line">
                    <label class="pull-left" style="min-width: 3em;padding-right: 2em;">
                        <?= Html::radio($model->formName() . "[has_is_checked_roles][]", $v['isChecked'], ['value' => $v['id']]); ?><?= $v['name'] ?>
                    </label>
                </div>
            <?php endforeach; ?>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
</div>
